package com.mingqijia.gassafety.webserver.service;

import com.mingqijia.gassafety.db.entity.ServiceComboDetail;
import com.mingqijia.gassafety.db.entity.vo.UserServiceComboVO;
import com.mingqijia.gassafety.webserver.request.inner.ServiceComboRecordRequest;

import java.util.List;

public interface ServiceComboDetailService {

    //批量新增服务套餐详情
    Boolean addComboDetail(List<ServiceComboDetail> comboDetailList);

    //根据套餐id批量查询
    List<ServiceComboDetail> queryByOrderCode(List<String> orderCodes);

    //根据条件批量查询
    List<ServiceComboDetail> queryByRecord(ServiceComboRecordRequest request);

    //获取用户有效的服务套餐
    UserServiceComboVO getUserServiceCombo(String code, Integer userId, String spId);
}
